<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <%@include file="/static/common/common.jsp"%>
    <script type="text/javascript" src="/static/js/menu.js"></script>
</head>
<body>
<table id="menu_treegrid"></table>
<div id="tb">
    <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-save',plain:true" data-cmd="add">新增</a>
    <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-edit',plain:true" data-cmd="edit">编辑</a>
    <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-remove',plain:true" data-cmd="remove">删除</a>
    <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-reload',plain:true" data-cmd="reload">刷新</a>
</div>
<div id="menu_dialog">
    <form id="menu_form" method="post">
        <input id="menuId" name="id" type="hidden">
        <table align="center" style="margin: 15px;">
            <tr>
                <td>菜单名称：</td>
                <td><input type="text" name="text" class="easyui-textbox" required="true" prompt="请输入菜单名"
                           invalidMessage="该菜单名已存在"
                           validType="remote['/menu/validateMenuText.do?id='+menuId.value,'text']"
                ></td>
            </tr>
            <tr>
                <td>菜单路径：</td>
                <td><input type="text" name="url" class="easyui-textbox"></td>
            </tr>
            <tr>
                <td>父菜单：</td>
                <td><input id="parentmenu_combotree" name="parent.id" class="easyui-combotree"
                           data-options="cascadeCheck:false,url:'/menu/selectRootMenu.do'"></td>
            </tr>
            <div id="btn">
                <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-save',plain:true" data-cmd="save">保存</a>
                <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-cancel',plain:true" data-cmd="cancel">取消</a>
            </div>
        </table>
    </form>
</div>
</body>
</html>
